// ***********************************************************************
// Assembly         : GeYiHome.Domain
// Author           : wzx
// Created          : 03-29-2017
//
// Last Modified By : wzx
// Last Modified On : 03-29-2017
// ***********************************************************************
// <copyright file="BaseEntity.cs" company="Nl">
//     Copyright ©  2017
// </copyright>
// <summary></summary>
// ***********************************************************************
using System;
using GeYiHome.PublicLibrary;

namespace GeYiHome.Domain.Entities
{
    /// <summary>
    /// Class BaseEntity.
    /// </summary>
    public class BaseEntity
    {
        /// <summary>
        /// Id
        /// </summary>
        /// <value>The identifier.</value>
        public Guid Id { get; set; }

        /// <summary>
        /// 添加人Id
        /// </summary>
        /// <value>The add user identifier.</value>
        public Guid AddUserId { get; set; }

        /// <summary>
        /// 添加人名称
        /// </summary>
        /// <value>The name of the add user.</value>
        public string AddUserName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        /// <value>The add time.</value>
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 修改人Id
        /// </summary>
        /// <value>The modify user identifier.</value>
        public Guid ModifyUserId { get; set; }

        /// <summary>
        /// 修改人名称
        /// </summary>
        /// <value>The name of the modify user.</value>
        public string ModifyUserName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        /// <value>The modify time.</value>
        public DateTime ModifyTime { get; set; }

        /// <summary>
        /// 数据状态
        /// </summary>
        /// <value>The state.</value>
        public DataState DataState { get; set; } = DataState.Orgin;
    }
}
